
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core">

	<!--<f:loadBundle basename="resources.application" var="msg"/>-->

	<head>
	    <title>CompletoinitialState</title>
		<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.4.2/pure-min.css"/>
		<style>
			* {
				font-family: /*"Segoe UI Semibold", "Segoe UI Web Semibold",*/
				"Segoe UI Web Regular", "Segoe UI", "Segoe UI Symbol",
				"HelveticaNeue-Medium", "Helvetica Neue", Arial, sans-serif;
			}
			input{
				height: 20px;
			}
			.FieldSet {
				border-bottom: 1px solid #e5e5e5;
			}
			.FieldSetItem{
				border-bottom: none;
			}
			.FieldSetPanelGroup {
				margin-left: 20px;
				margin-right: 40px;
				border-bottom: 1px solid #e5e5e5;
			}
			.FieldSetPanelGroupItem {
				border-bottom: none;
				margin-left: 0;
			}
			.LegendFieldSet{
				font-size: 110%;
			}
			.LegendFieldSetPanelGroup {
				font-size: 100%;
			}
			.Table {
				width: 100%;
				padding-bottom: 2px; 
			}
			label {
				font-size: 90%;
			}
			.CommandButton {
				font-size: 80%;
 				padding-bottom: 20px; 
 				margin-bottom: 2px;
			}
			span {
				font-size: 90%;
				display: block;
				margin: .25em 0;
			}
			.Optional {}
			.Entry {}
		</style>
		<script>
			//<![CDATA[
			function validate(event){
				var elements = document.getElementsByClassName('Entry');
				if(elements != null){
					for(var index = 0; index < elements.length; index++){
						var element = elements[index];
						var hasOptionalClass = element.className.indexOf('Optional') >= 0;
						var isInputText = element.nodeName == 'INPUT';
						var isSelect = element.nodeName == 'SELECT';
						var isEmpty = element.value == '';
						if((isInputText || isSelect) && !hasOptionalClass && isEmpty){
							alert('Preencha os campos obrigat\u00f3rios');
							return false;
						}
					}
					return true;
				}
			}
			function doTransition(event, callType, noReturn){
				var isValid = validate();
				if(!isValid){
					event.returnValue = false;
					return false;
				}
				if(!noReturn){
					if(callType == 'other'){
						var uidCall = sessionStorage.getItem("uidCall");
						if(uidCall == null){
							uidCall = "";
						}
						uidCall = uidCall.split(",");
						uidCall[uidCall.length] = "completoinitialstate.xhtml";
						sessionStorage.setItem("uidCall", uidCall);
					}else{
						var stateCall = sessionStorage.getItem("stateCall");
						if(stateCall == null){
							stateCall = "";
						}
						stateCall = stateCall.split(",");
						stateCall[stateCall.length] = "completoinitialstate.xhtml";
						sessionStorage.setItem("stateCall", stateCall);
					}
				}
				event.returnValue = true;
				return true;
			}
			window.onload = function(){
				var history = sessionStorage.getItem("history");
				if(history == null){
					history = "";
				}
				history = history.split(",");
				if(history[history.length -1 ] == "completoinitialstate.xhtml"){
					history.splice(history.length -1, 1);
				}else{
					history[history.length] = "completoinitialstate.xhtml";
				}
				sessionStorage.setItem("history", history);

				var uidCallArray = sessionStorage.getItem("uidCall");
				var stateCallArray = sessionStorage.getItem("stateCall");
				
				if(uidCallArray != null && uidCallArray != ""){
					uidCallArray = uidCallArray.split(",");
					if(uidCallArray[uidCallArray.length -1] == "completoinitialstate.xhtml"){
						uidCallArray.splice(uidCallArray.length -1, 1);
						sessionStorage.setItem("uidCall", uidCallArray);
					}
				}

				if(stateCallArray != null && stateCallArray != ""){
					stateCallArray = stateCallArray.split(",");
					if(stateCallArray[stateCallArray.length -1] == "completoinitialstate.xhtml"){
						stateCallArray.splice(stateCallArray.length -1, 1);
						sessionStorage.setItem("stateCall", stateCallArray);
					}
				}

				var isLeefState = document.getElementsByClassName("CommandButton").length == 2;

				if(isLeefState && uidCallArray != null && uidCallArray != ""){
					var uidCall = uidCallArray[uidCallArray.length -1];
					if(uidCall != null && uidCall != ""){
						var uidCallButton = document.getElementById('uidCallButton');
						uidCallButton.parentNode.style.visibility = 'visible';
						uidCallButton.style.visibility = 'visible';
						uidCallButton.onclick = function(){
							sessionStorage.setItem("uidCall", "");
							var history = sessionStorage.getItem("history").split(",");
							var indexToGo = 0;
							for(var index = history.length - 1; index >= 0; index--){
								if(history[index] == uidCall){
									history.splice(history.length - 1, indexToGo);
									sessionStorage.setItem("history", history);
									uidCallArray.splice(uidCallArray.length - 1, 1);
									sessionStorage.setItem("uidCall", uidCallArray);
									var stateCallArray = sessionStorage.getItem("stateCall").split(",");
									stateCallArray.splice(stateCallArray.length - 1, indexToGo);
									sessionStorage.setItem("stateCall", stateCallArray);
									window.history.go(-indexToGo);
									return true;
								}
								indexToGo += 1;
							}
						};
					}
				}

				if(stateCallArray != null && stateCallArray != ""){
					var stateCall = stateCallArray[stateCallArray.length -1];
					if(stateCall != null && stateCall != ""){
						var stateCallButton = document.getElementById('stateCallButton');
						stateCallButton.parentNode.style.visibility = 'visible';
						stateCallButton.style.visibility = 'visible';
						stateCallButton.onclick = function(){
							sessionStorage.setItem("stateCall", "");
							var history = sessionStorage.getItem("history").split(",");
							var indexToGo = 0;
							for(var index = history.length - 1; index >= 0; index--){
								if(history[index] == stateCall){
									history.splice(history.length - 1, indexToGo);
									sessionStorage.setItem("history", history);
									stateCallArray.splice(stateCallArray.length - 1, 1);
									sessionStorage.setItem("stateCall", stateCallArray);
									window.history.go(-indexToGo);
									return true;
								}
								indexToGo += 1;
							}
						};
					}
				}
			};
			//]]>
		</script>
	</head>
	<body>
		<h:form class="pure-form pure-form-stacked" style="max-width: 600px; padding:20px;" >
		<!--<div style="font-size:200%; padding-bottom:20px;" >CompletoinitialState</div>-->
		<div class="pure-g-r">
			<div class="pure-u-1-2">
			<h:outputLabel value="#{completoinitialStateBean.dataitem1}">DataItem Input*</h:outputLabel>
			<h:inputText value="#{completoinitialStateBean.dataitem1}" class="Entry "></h:inputText>
			</div>
			<div class="pure-u-1-2">
			<h:outputLabel >Enumerated User Input*</h:outputLabel>
			<h:selectManyListbox value="#{completoinitialStateBean.enumerateddata1}" class="Entry " >
				<f:selectItem itemValue="Option A" itemLabel="Option A" />
				<f:selectItem itemValue="Option B" itemLabel="Option B" />
			</h:selectManyListbox>
			</div>
			<div class="pure-u-1-2">
			<h:outputLabel >Optional EnumeratedUserInput</h:outputLabel>
			<h:selectManyListbox value="#{completoinitialStateBean.enumerateddata2}" class="Entry Optional" >
				<f:selectItem itemValue="Option A" itemLabel="Option A" />
				<f:selectItem itemValue="Option B" itemLabel="Option B" />
			</h:selectManyListbox>
			</div>
			<div class="pure-u-1-2">
			<h:outputLabel >Data A</h:outputLabel>
			</div>
			<div class="pure-u-1-2">
			<h:outputLabel >Data Item</h:outputLabel>
				<div class="pure-u-1-2">
				<h:outputLabel >&nbsp;</h:outputLabel>
				<h:commandButton class="pure-button pure-button-primary CommandButton" value="Condition A" action="completostates1?faces-redirect=true" onclick="doTransition(event, 'this')"></h:commandButton>
				</div>
			</div>
			<div class="pure-u-1-2">
			<h:outputLabel value="#{completoinitialStateBean.dataitem11}">OptionalDataItem Input</h:outputLabel>
			<h:inputText value="#{completoinitialStateBean.dataitem11}" class="Entry Optional"></h:inputText>
			</div>
			<div class="pure-u-1-2">
			<h:outputLabel value="#{completoinitialStateBean.dataitem7}">DataItem A</h:outputLabel>
			<h:inputText value="#{completoinitialStateBean.dataitem7}" class="Entry Optional"></h:inputText>
			</div>
			<div class="pure-u-1-2">
			<h:outputLabel value="#{completoinitialStateBean.dataitem8}">DataItem B</h:outputLabel>
			<h:inputText value="#{completoinitialStateBean.dataitem8}" class="Entry Optional"></h:inputText>
			</div>
			<div class="pure-u-1-2">
			<h:outputLabel value="#{completoinitialStateBean.dataitem9}">DataItem C</h:outputLabel>
			<h:inputText value="#{completoinitialStateBean.dataitem9}" class="Entry Optional"></h:inputText>
			</div>
			<div class="pure-u-1-2">
			<h:outputLabel value="#{completoinitialStateBean.dataitem10}">DataItem D</h:outputLabel>
			<h:inputText value="#{completoinitialStateBean.dataitem10}" class="Entry Optional"></h:inputText>
			</div>
			<div class="pure-u-1-2">
			<h:outputLabel value="#{completoinitialStateBean.dataitem17}">DataItem E</h:outputLabel>
			<h:inputText value="#{completoinitialStateBean.dataitem17}" class="Entry Optional"></h:inputText>
			</div>
			<div class="pure-u-1-2">
			<h:outputLabel value="#{completoinitialStateBean.dataitem18}">DataItem F</h:outputLabel>
			<h:inputText value="#{completoinitialStateBean.dataitem18}" class="Entry Optional"></h:inputText>
			</div>
			<div class="pure-u-1-2">
			<h:outputLabel value="#{completoinitialStateBean.dataitem19}">DataItem G</h:outputLabel>
			<h:inputText value="#{completoinitialStateBean.dataitem19}" class="Entry Optional"></h:inputText>
			</div>
			<div class="pure-u-1-2">
			<h:outputLabel value="#{completoinitialStateBean.dataitem20}">DataItem H</h:outputLabel>
			<h:inputText value="#{completoinitialStateBean.dataitem20}" class="Entry Optional"></h:inputText>
			</div>
			<div class="pure-u-1-2">
			<h:outputLabel >&nbsp;</h:outputLabel>
			<h:commandButton class="pure-button pure-button-primary CommandButton" value="Ok" action="completostates0?faces-redirect=true" onclick="doTransition(event, 'this')"></h:commandButton>
			</div>
			<div class="pure-u-1 ">
			<h:panelGroup >
			<fieldset class="pure-u-1 " >
			<div class="pure-g-r FieldSet">
			<legend class="pure-u-1 LegendFieldSet" >DataItemSet Input</legend>
				<div class="pure-u-1-2 FieldSetItem">
				<h:outputLabel >DataItemSet Input1*</h:outputLabel>
				<h:inputText value="#{completoinitialStateBean.dataitem21}" class="Entry "></h:inputText>
				</div>
				<div class="pure-u-1-2 FieldSetItem">
				<h:outputLabel >DataItemSet Input2*</h:outputLabel>
				<h:inputText value="#{completoinitialStateBean.dataitem22}" class="Entry "></h:inputText>
				</div>
				<div class="pure-u-1-2 FieldSetItem">
				<h:outputLabel >DataItemSet Input3*</h:outputLabel>
				<h:inputText value="#{completoinitialStateBean.dataitem23}" class="Entry "></h:inputText>
				</div>
				<div class="pure-u-1-2 FieldSetItem">
				<h:outputLabel >DataItemSet Input4*</h:outputLabel>
				<h:inputText value="#{completoinitialStateBean.dataitem24}" class="Entry "></h:inputText>
				</div>
				<div class="pure-u-1-2 FieldSetItem">
				<h:outputLabel >DataItemSet Input5*</h:outputLabel>
				<h:inputText value="#{completoinitialStateBean.dataitem25}" class="Entry "></h:inputText>
				</div>
				<div class="pure-u-1-2 FieldSetItem">
				<h:outputLabel >DataItemSet Input6*</h:outputLabel>
				<h:inputText value="#{completoinitialStateBean.dataitem26}" class="Entry "></h:inputText>
				</div>
				<div class="pure-u-1-2 FieldSetItem">
				<h:outputLabel >DataItemSet Input7*</h:outputLabel>
				<h:inputText value="#{completoinitialStateBean.dataitem27}" class="Entry "></h:inputText>
				</div>
				<div class="pure-u-1-2 FieldSetItem">
				<h:outputLabel >DataItemSet Input8*</h:outputLabel>
				<h:inputText value="#{completoinitialStateBean.dataitem28}" class="Entry "></h:inputText>
				</div>
				<div class="pure-u-1-2 FieldSetItem">
				<h:outputLabel >DataItemSet Input9*</h:outputLabel>
				<h:inputText value="#{completoinitialStateBean.dataitem29}" class="Entry "></h:inputText>
				</div>
				<div class="pure-u-1-2 FieldSetItem">
				<h:outputLabel >DataItemSet Input10*</h:outputLabel>
				<h:inputText value="#{completoinitialStateBean.dataitem210}" class="Entry "></h:inputText>
				</div>
			</div>
			</fieldset>
			</h:panelGroup>
			</div>
			<div class="pure-u-1 ">
			<h:panelGroup >
			<fieldset class="pure-u-1 " >
			<div class="pure-g-r FieldSet">
			<legend class="pure-u-1 LegendFieldSet" >OptionalDataItemSet Input</legend>
				<div class="pure-u-1-2 FieldSetItem">
				<h:outputLabel >OptionalDataItemSet Input1</h:outputLabel>
				<h:inputText value="#{completoinitialStateBean.dataitem121}" class="Entry Optional"></h:inputText>
				</div>
				<div class="pure-u-1-2 FieldSetItem">
				<h:outputLabel >OptionalDataItemSet Input2</h:outputLabel>
				<h:inputText value="#{completoinitialStateBean.dataitem122}" class="Entry Optional"></h:inputText>
				</div>
				<div class="pure-u-1-2 FieldSetItem">
				<h:outputLabel >OptionalDataItemSet Input3</h:outputLabel>
				<h:inputText value="#{completoinitialStateBean.dataitem123}" class="Entry Optional"></h:inputText>
				</div>
				<div class="pure-u-1-2 FieldSetItem">
				<h:outputLabel >OptionalDataItemSet Input4</h:outputLabel>
				<h:inputText value="#{completoinitialStateBean.dataitem124}" class="Entry Optional"></h:inputText>
				</div>
				<div class="pure-u-1-2 FieldSetItem">
				<h:outputLabel >OptionalDataItemSet Input5</h:outputLabel>
				<h:inputText value="#{completoinitialStateBean.dataitem125}" class="Entry Optional"></h:inputText>
				</div>
				<div class="pure-u-1-2 FieldSetItem">
				<h:outputLabel >OptionalDataItemSet Input6</h:outputLabel>
				<h:inputText value="#{completoinitialStateBean.dataitem126}" class="Entry Optional"></h:inputText>
				</div>
				<div class="pure-u-1-2 FieldSetItem">
				<h:outputLabel >OptionalDataItemSet Input7</h:outputLabel>
				<h:inputText value="#{completoinitialStateBean.dataitem127}" class="Entry Optional"></h:inputText>
				</div>
				<div class="pure-u-1-2 FieldSetItem">
				<h:outputLabel >OptionalDataItemSet Input8</h:outputLabel>
				<h:inputText value="#{completoinitialStateBean.dataitem128}" class="Entry Optional"></h:inputText>
				</div>
				<div class="pure-u-1-2 FieldSetItem">
				<h:outputLabel >OptionalDataItemSet Input9</h:outputLabel>
				<h:inputText value="#{completoinitialStateBean.dataitem129}" class="Entry Optional"></h:inputText>
				</div>
				<div class="pure-u-1-2 FieldSetItem">
				<h:outputLabel >OptionalDataItemSet Input10</h:outputLabel>
				<h:inputText value="#{completoinitialStateBean.dataitem1210}" class="Entry Optional"></h:inputText>
				</div>
			</div>
			</fieldset>
			</h:panelGroup>
			</div>
			<div class="pure-u-1">
			<h:panelGroup >
			<fieldset class="pure-u-1 " >
			<div class="pure-g-r FieldSet" >
			<legend class="pure-u-1 LegendFieldSet" >Structure Input</legend>
				<div class="pure-u-1-2">
				<h:outputLabel >Data A*</h:outputLabel>
				<h:inputText value="#{completoinitialStateBean.dataitem3}" class="Entry "></h:inputText>
				</div>
				<div class="pure-u-1-2">
				<h:outputLabel >Data B*</h:outputLabel>
				<h:inputText value="#{completoinitialStateBean.dataitem4}" class="Entry "></h:inputText>
				</div>
			</div>
			</fieldset>
			</h:panelGroup>
			</div>
			<div class="pure-u-1">
			<h:panelGroup >
			<fieldset class="pure-u-1 " >
			<div class="pure-g-r FieldSet" >
			<legend class="pure-u-1 LegendFieldSet" >OptionalStructure Input</legend>
				<div class="pure-u-1-2">
				<h:outputLabel >Data A</h:outputLabel>
				<h:inputText value="#{completoinitialStateBean.dataitem13}" class="Entry Optional"></h:inputText>
				</div>
				<div class="pure-u-1-2">
				<h:outputLabel >Data B</h:outputLabel>
				<h:inputText value="#{completoinitialStateBean.dataitem14}" class="Entry Optional"></h:inputText>
				</div>
			</div>
			</fieldset>
			</h:panelGroup>
			</div>
			<div class="pure-u-1 ">
			<h:panelGroup >
			<fieldset class="pure-u-1 " >
			<div class="pure-g-r FieldSet">
			<legend class="pure-u-1 LegendFieldSet" >StructureSet Input</legend>
					<div class="pure-u-1 ">
					<h:panelGroup >
					<fieldset class="pure-u-1 " >
					<div class="pure-g-r FieldSetPanelGroup" >
					<legend class="pure-u-1 LegendFieldSetPanelGroup" >StructureSet Input1</legend>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data A1*</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem51}" class="Entry "></h:inputText>
						</div>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data B1*</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem61}" class="Entry "></h:inputText>
						</div>
					</div>
					</fieldset>
					</h:panelGroup>
					</div>
					<div class="pure-u-1 ">
					<h:panelGroup >
					<fieldset class="pure-u-1 " >
					<div class="pure-g-r FieldSetPanelGroup" >
					<legend class="pure-u-1 LegendFieldSetPanelGroup" >StructureSet Input2</legend>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data A2*</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem52}" class="Entry "></h:inputText>
						</div>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data B2*</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem62}" class="Entry "></h:inputText>
						</div>
					</div>
					</fieldset>
					</h:panelGroup>
					</div>
					<div class="pure-u-1 ">
					<h:panelGroup >
					<fieldset class="pure-u-1 " >
					<div class="pure-g-r FieldSetPanelGroup" >
					<legend class="pure-u-1 LegendFieldSetPanelGroup" >StructureSet Input3</legend>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data A3*</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem53}" class="Entry "></h:inputText>
						</div>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data B3*</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem63}" class="Entry "></h:inputText>
						</div>
					</div>
					</fieldset>
					</h:panelGroup>
					</div>
					<div class="pure-u-1 ">
					<h:panelGroup >
					<fieldset class="pure-u-1 " >
					<div class="pure-g-r FieldSetPanelGroup" >
					<legend class="pure-u-1 LegendFieldSetPanelGroup" >StructureSet Input4</legend>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data A4*</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem54}" class="Entry "></h:inputText>
						</div>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data B4*</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem64}" class="Entry "></h:inputText>
						</div>
					</div>
					</fieldset>
					</h:panelGroup>
					</div>
					<div class="pure-u-1 ">
					<h:panelGroup >
					<fieldset class="pure-u-1 " >
					<div class="pure-g-r FieldSetPanelGroup" >
					<legend class="pure-u-1 LegendFieldSetPanelGroup" >StructureSet Input5</legend>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data A5*</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem55}" class="Entry "></h:inputText>
						</div>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data B5*</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem65}" class="Entry "></h:inputText>
						</div>
					</div>
					</fieldset>
					</h:panelGroup>
					</div>
					<div class="pure-u-1 ">
					<h:panelGroup >
					<fieldset class="pure-u-1 " >
					<div class="pure-g-r FieldSetPanelGroup" >
					<legend class="pure-u-1 LegendFieldSetPanelGroup" >StructureSet Input6</legend>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data A6*</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem56}" class="Entry "></h:inputText>
						</div>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data B6*</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem66}" class="Entry "></h:inputText>
						</div>
					</div>
					</fieldset>
					</h:panelGroup>
					</div>
					<div class="pure-u-1 ">
					<h:panelGroup >
					<fieldset class="pure-u-1 " >
					<div class="pure-g-r FieldSetPanelGroup" >
					<legend class="pure-u-1 LegendFieldSetPanelGroup" >StructureSet Input7</legend>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data A7*</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem57}" class="Entry "></h:inputText>
						</div>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data B7*</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem67}" class="Entry "></h:inputText>
						</div>
					</div>
					</fieldset>
					</h:panelGroup>
					</div>
					<div class="pure-u-1 ">
					<h:panelGroup >
					<fieldset class="pure-u-1 " >
					<div class="pure-g-r FieldSetPanelGroup" >
					<legend class="pure-u-1 LegendFieldSetPanelGroup" >StructureSet Input8</legend>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data A8*</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem58}" class="Entry "></h:inputText>
						</div>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data B8*</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem68}" class="Entry "></h:inputText>
						</div>
					</div>
					</fieldset>
					</h:panelGroup>
					</div>
					<div class="pure-u-1 ">
					<h:panelGroup >
					<fieldset class="pure-u-1 " >
					<div class="pure-g-r FieldSetPanelGroup" >
					<legend class="pure-u-1 LegendFieldSetPanelGroup" >StructureSet Input9</legend>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data A9*</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem59}" class="Entry "></h:inputText>
						</div>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data B9*</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem69}" class="Entry "></h:inputText>
						</div>
					</div>
					</fieldset>
					</h:panelGroup>
					</div>
					<div class="pure-u-1 ">
					<h:panelGroup >
					<fieldset class="pure-u-1 " >
					<div class="pure-g-r FieldSetPanelGroup" >
					<legend class="pure-u-1 LegendFieldSetPanelGroup" >StructureSet Input10</legend>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data A10*</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem510}" class="Entry "></h:inputText>
						</div>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data B10*</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem610}" class="Entry "></h:inputText>
						</div>
					</div>
					</fieldset>
					</h:panelGroup>
					</div>
			</div>
			</fieldset>
			</h:panelGroup>
			</div>
			<div class="pure-u-1 ">
			<h:panelGroup >
			<fieldset class="pure-u-1 " >
			<div class="pure-g-r FieldSet">
			<legend class="pure-u-1 LegendFieldSet" >OptionalStructure SetInput</legend>
					<div class="pure-u-1 ">
					<h:panelGroup >
					<fieldset class="pure-u-1 " >
					<div class="pure-g-r FieldSetPanelGroup" >
					<legend class="pure-u-1 LegendFieldSetPanelGroup" >OptionalStructure SetInput1</legend>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data A1</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem151}" class="Entry Optional"></h:inputText>
						</div>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data B1</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem161}" class="Entry Optional"></h:inputText>
						</div>
					</div>
					</fieldset>
					</h:panelGroup>
					</div>
					<div class="pure-u-1 ">
					<h:panelGroup >
					<fieldset class="pure-u-1 " >
					<div class="pure-g-r FieldSetPanelGroup" >
					<legend class="pure-u-1 LegendFieldSetPanelGroup" >OptionalStructure SetInput2</legend>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data A2</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem152}" class="Entry Optional"></h:inputText>
						</div>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data B2</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem162}" class="Entry Optional"></h:inputText>
						</div>
					</div>
					</fieldset>
					</h:panelGroup>
					</div>
					<div class="pure-u-1 ">
					<h:panelGroup >
					<fieldset class="pure-u-1 " >
					<div class="pure-g-r FieldSetPanelGroup" >
					<legend class="pure-u-1 LegendFieldSetPanelGroup" >OptionalStructure SetInput3</legend>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data A3</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem153}" class="Entry Optional"></h:inputText>
						</div>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data B3</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem163}" class="Entry Optional"></h:inputText>
						</div>
					</div>
					</fieldset>
					</h:panelGroup>
					</div>
					<div class="pure-u-1 ">
					<h:panelGroup >
					<fieldset class="pure-u-1 " >
					<div class="pure-g-r FieldSetPanelGroup" >
					<legend class="pure-u-1 LegendFieldSetPanelGroup" >OptionalStructure SetInput4</legend>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data A4</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem154}" class="Entry Optional"></h:inputText>
						</div>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data B4</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem164}" class="Entry Optional"></h:inputText>
						</div>
					</div>
					</fieldset>
					</h:panelGroup>
					</div>
					<div class="pure-u-1 ">
					<h:panelGroup >
					<fieldset class="pure-u-1 " >
					<div class="pure-g-r FieldSetPanelGroup" >
					<legend class="pure-u-1 LegendFieldSetPanelGroup" >OptionalStructure SetInput5</legend>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data A5</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem155}" class="Entry Optional"></h:inputText>
						</div>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data B5</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem165}" class="Entry Optional"></h:inputText>
						</div>
					</div>
					</fieldset>
					</h:panelGroup>
					</div>
					<div class="pure-u-1 ">
					<h:panelGroup >
					<fieldset class="pure-u-1 " >
					<div class="pure-g-r FieldSetPanelGroup" >
					<legend class="pure-u-1 LegendFieldSetPanelGroup" >OptionalStructure SetInput6</legend>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data A6</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem156}" class="Entry Optional"></h:inputText>
						</div>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data B6</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem166}" class="Entry Optional"></h:inputText>
						</div>
					</div>
					</fieldset>
					</h:panelGroup>
					</div>
					<div class="pure-u-1 ">
					<h:panelGroup >
					<fieldset class="pure-u-1 " >
					<div class="pure-g-r FieldSetPanelGroup" >
					<legend class="pure-u-1 LegendFieldSetPanelGroup" >OptionalStructure SetInput7</legend>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data A7</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem157}" class="Entry Optional"></h:inputText>
						</div>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data B7</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem167}" class="Entry Optional"></h:inputText>
						</div>
					</div>
					</fieldset>
					</h:panelGroup>
					</div>
					<div class="pure-u-1 ">
					<h:panelGroup >
					<fieldset class="pure-u-1 " >
					<div class="pure-g-r FieldSetPanelGroup" >
					<legend class="pure-u-1 LegendFieldSetPanelGroup" >OptionalStructure SetInput8</legend>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data A8</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem158}" class="Entry Optional"></h:inputText>
						</div>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data B8</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem168}" class="Entry Optional"></h:inputText>
						</div>
					</div>
					</fieldset>
					</h:panelGroup>
					</div>
					<div class="pure-u-1 ">
					<h:panelGroup >
					<fieldset class="pure-u-1 " >
					<div class="pure-g-r FieldSetPanelGroup" >
					<legend class="pure-u-1 LegendFieldSetPanelGroup" >OptionalStructure SetInput9</legend>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data A9</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem159}" class="Entry Optional"></h:inputText>
						</div>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data B9</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem169}" class="Entry Optional"></h:inputText>
						</div>
					</div>
					</fieldset>
					</h:panelGroup>
					</div>
					<div class="pure-u-1 ">
					<h:panelGroup >
					<fieldset class="pure-u-1 " >
					<div class="pure-g-r FieldSetPanelGroup" >
					<legend class="pure-u-1 LegendFieldSetPanelGroup" >OptionalStructure SetInput10</legend>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data A10</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem1510}" class="Entry Optional"></h:inputText>
						</div>
						<div class="pure-u-1-2 FieldSetPanelGroupItem">
						<h:outputLabel >Data B10</h:outputLabel>
						<h:inputText value="#{completoinitialStateBean.dataitem1610}" class="Entry Optional"></h:inputText>
						</div>
					</div>
					</fieldset>
					</h:panelGroup>
					</div>
			</div>
			</fieldset>
			</h:panelGroup>
			</div>
			<div class="pure-u-1 ">
			<h:panelGroup >
			<fieldset class="pure-u-1 " >
			<div class="pure-g-r FieldSet">
			<legend class="pure-u-1 LegendFieldSet" >Data ItemSet</legend>
				<div class="pure-u-1-2 FieldSetItem">
				<h:outputLabel >Data ItemSet1</h:outputLabel>
				</div>
					<div class="pure-u-1-2">
						<h:outputLabel >&nbsp;</h:outputLabel>
					<h:commandButton class="pure-button pure-button-primary CommandButton" value="Condition A" action="completostates1?faces-redirect=true" onclick="doTransition(event, 'this')"></h:commandButton>
					</div>
				<div class="pure-u-1-2 FieldSetItem">
				<h:outputLabel >Data ItemSet2</h:outputLabel>
				</div>
					<div class="pure-u-1-2">
						<h:outputLabel >&nbsp;</h:outputLabel>
					<h:commandButton class="pure-button pure-button-primary CommandButton" value="Condition A" action="completostates1?faces-redirect=true" onclick="doTransition(event, 'this')"></h:commandButton>
					</div>
				<div class="pure-u-1-2 FieldSetItem">
				<h:outputLabel >Data ItemSet3</h:outputLabel>
				</div>
					<div class="pure-u-1-2">
						<h:outputLabel >&nbsp;</h:outputLabel>
					<h:commandButton class="pure-button pure-button-primary CommandButton" value="Condition A" action="completostates1?faces-redirect=true" onclick="doTransition(event, 'this')"></h:commandButton>
					</div>
				<div class="pure-u-1-2 FieldSetItem">
				<h:outputLabel >Data ItemSet4</h:outputLabel>
				</div>
					<div class="pure-u-1-2">
						<h:outputLabel >&nbsp;</h:outputLabel>
					<h:commandButton class="pure-button pure-button-primary CommandButton" value="Condition A" action="completostates1?faces-redirect=true" onclick="doTransition(event, 'this')"></h:commandButton>
					</div>
				<div class="pure-u-1-2 FieldSetItem">
				<h:outputLabel >Data ItemSet5</h:outputLabel>
				</div>
					<div class="pure-u-1-2">
						<h:outputLabel >&nbsp;</h:outputLabel>
					<h:commandButton class="pure-button pure-button-primary CommandButton" value="Condition A" action="completostates1?faces-redirect=true" onclick="doTransition(event, 'this')"></h:commandButton>
					</div>
				<div class="pure-u-1-2 FieldSetItem">
				<h:outputLabel >Data ItemSet6</h:outputLabel>
				</div>
					<div class="pure-u-1-2">
						<h:outputLabel >&nbsp;</h:outputLabel>
					<h:commandButton class="pure-button pure-button-primary CommandButton" value="Condition A" action="completostates1?faces-redirect=true" onclick="doTransition(event, 'this')"></h:commandButton>
					</div>
				<div class="pure-u-1-2 FieldSetItem">
				<h:outputLabel >Data ItemSet7</h:outputLabel>
				</div>
					<div class="pure-u-1-2">
						<h:outputLabel >&nbsp;</h:outputLabel>
					<h:commandButton class="pure-button pure-button-primary CommandButton" value="Condition A" action="completostates1?faces-redirect=true" onclick="doTransition(event, 'this')"></h:commandButton>
					</div>
				<div class="pure-u-1-2 FieldSetItem">
				<h:outputLabel >Data ItemSet8</h:outputLabel>
				</div>
					<div class="pure-u-1-2">
						<h:outputLabel >&nbsp;</h:outputLabel>
					<h:commandButton class="pure-button pure-button-primary CommandButton" value="Condition A" action="completostates1?faces-redirect=true" onclick="doTransition(event, 'this')"></h:commandButton>
					</div>
				<div class="pure-u-1-2 FieldSetItem">
				<h:outputLabel >Data ItemSet9</h:outputLabel>
				</div>
					<div class="pure-u-1-2">
						<h:outputLabel >&nbsp;</h:outputLabel>
					<h:commandButton class="pure-button pure-button-primary CommandButton" value="Condition A" action="completostates1?faces-redirect=true" onclick="doTransition(event, 'this')"></h:commandButton>
					</div>
				<div class="pure-u-1-2 FieldSetItem">
				<h:outputLabel >Data ItemSet10</h:outputLabel>
				</div>
					<div class="pure-u-1-2">
						<h:outputLabel >&nbsp;</h:outputLabel>
					<h:commandButton class="pure-button pure-button-primary CommandButton" value="Condition A" action="completostates1?faces-redirect=true" onclick="doTransition(event, 'this')"></h:commandButton>
					</div>
			</div>
			</fieldset>
			</h:panelGroup>
			</div>
			<div class="pure-u-1">
			<h:panelGroup >
			<fieldset class="pure-u-1 " >
			<div class="pure-g-r FieldSet" >
			<legend class="pure-u-1 LegendFieldSet" >Struc ture</legend>
				<div class="pure-u-1-2">
				<h:outputLabel >Data A</h:outputLabel>
				</div>
				<div class="pure-u-1-2">
				<h:outputLabel >Data B</h:outputLabel>
				</div>
			</div>
			</fieldset>
			</h:panelGroup>
			</div>
			<div class="pure-u-1">
			<fieldset class="pure-u-1" >
			<div class="pure-u-1"> 
			<legend class="pure-u-1 LegendFieldSet" >Structure Set</legend>
			<h:dataTable value="#{completoinitialStateBean.outputstructureset2.list}" var="outputstructureset2" class="pure-table Table" >
				<h:column>
    				<!-- column header -->
    				<f:facet name="header">Data A</f:facet>
    				<!-- row record -->
    				#{outputstructureset2.outputdataitem11}
    			</h:column>
				<h:column>
    				<!-- column header -->
    				<f:facet name="header">Data B</f:facet>
    				<!-- row record -->
    				#{outputstructureset2.outputdataitem12}
    			</h:column>
				<h:column>
					<!-- column header -->
					<f:facet name="header"></f:facet>
					<!-- row record -->
					<h:commandButton class="pure-button pure-button-primary CommandButton" value="Condition A" action="completostates1?faces-redirect=true" onclick="doTransition(event, 'this')"></h:commandButton>
				</h:column>
				<h:column>
					<!-- column header -->
					<f:facet name="header"></f:facet>
					<!-- row record -->
					<h:commandButton class="pure-button pure-button-primary CommandButton" value="Condition A" action="completostates1?faces-redirect=true" onclick="doTransition(event, 'this')"></h:commandButton>
				</h:column>
			</h:dataTable>
			</div>
			<div class="pure-u-1">
			</div>
			</fieldset>
			</div>
			<div class="pure-u-1-1"  >
				<h:outputLabel >&nbsp;</h:outputLabel>
			</div>
			<div class="pure-u-1-2" style='visibility: hidden;' >
				<input id="stateCallButton" type='button' class='pure-button pure-button-primary CommandButton' style='visibility: hidden;' value='Retornar ao estado anterior' onclick='' />
			</div>
			<div class="pure-u-1-2" style='visibility: hidden;' >
				<input id="uidCallButton" type='button' class='pure-button pure-button-primary CommandButton' style='visibility: hidden;' value='Retornar ao UID anterior' onclick='' />
			</div>
		</div>
		</h:form>
	</body>
</html>
